<%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
  <%= f.error_notification %>
  <h2 class="text-center">更换您的密码</h2>
  <%= f.input :reset_password_token, as: :hidden %>
  <%= f.full_error :reset_password_token %>

  <%= f.input :password, label: "新密码", required: true, autofocus: true %>
  <%= f.input :password_confirmation, label: "确认新密码", required: true %>


  <div class="form-actions">
    <%= f.button :submit, "更换我的密码" %>
  </div>
<% end %>

<%= render "devise/shared/links" %>
